works in conjunction with the Peter M Lewis's excellent Balloon Help Compiler for Code Warrior. It's something I whipped up using Code Warrior's 9 Pascal compiler to take all the menus and dialogs in a resedit (rsrc) or Application and spit them out in a CW text file in the same format as Peter's Ballon Help Compiler requires. It's a simple 68K application and there won't be a fat version cause it's not worth writing (like 10 seconds vs 2 seconds to rip through an application with 42 menus and about 200 dialogs).
This is a FreeWare Application and may be freely distributed and used. I would ask that if you use this, have a look through your hard drive and see what shareware applications your using and make sure you've paid the author for their efforts.
I accept no reponsibility if it crashes, eats, destroys things or otherwise raises havoc on your mac. Testing has been limited to my own PowerMac under system 7.5.3 , so use it at your own risk. If you wish to get in touch with me, send E-Mail to Milton Aupperle at aupperlm@cadvision.com.
To use it do the following:
1) double click on the Make Balloon Text application
2) When the Open File dialog appears select the Application or Resedit RSRC file you want to process
3) Click open
If any of your dialogs are set up to automautically "show" themselves, they will briefly "flash" onto the monitor and then disapear. Although visually unappealing, it doesn't hurt anything and is more work than it's worth to trap out.
4) After a few seconds, the application quits back to the desktop and your done.
The Make Balloon Text application does the following things for you:
1) Creates a .bh text file with all the menus and dialog ditl items in it. The created text file will be named the same as the file you processing, with the letter .bh appended to it's name (ie if you process "myapp", the resulting file is called "myapp.bh"). NOTE that any file having the same .bh" name designation will be over written (ie a pre existing "myapp.bh" will be over written).
2) it numbers the items based on your menu ID & dialog id and posts the resources name beside them
3) It Keeps track of the state of the menu and ditl items and flags them appropriately into the 4 categories that Peter's compiler uses (x.1 = enabled x.2 = disabled x.3 checked x.4 other). Due to a few complexities, the only menus that will be designated as disabled (x.2) will be those that are a line separators in a menu and sub menus will show up as x.4.
4) for ditl dialog items, it also indicates what type of ditl item each is and posts out the name of controls, buttons and text for static or editable text.Since some people may not want to know exactly what each item is, I made the flags for them fairly unique so you can do a find and replace to strip this stuff out if you need to, using the following text.
•utm• - a user defined item
•btn• - button control - like "okay"
•rbt• - radio button control
•cbx• - checkbox control
•cnt• - resource control like scroll bars etc.
•stt• - static text
•ett• - edit text
•icn• - icon
•pic• - picture
•???• - Unknown type - probably you'll never see this, but who knows.